#ifndef _DevicesDock_H_
#define _DevicesDock_H_


#define DOCK_CODE_LOW_MIN    900
#define DOCK_CODE_LOW_MAX    1300

#define DOCK_CODE_HIGH_MIN   2000
#define DOCK_CODE_HIGH_MAX   2400

#define DOCK_CODE_HEAD_MIN   4900
#define DOCK_CODE_HEAD_MAX   5300



typedef enum{
    dockReset = 0,
    dockSucceed,
    dockReadUser,
    dockReadControl,
    dockReadData,
}DockStateEnum;




typedef struct{
    int8_t state;
    int8_t length;
    uint8_t user;
    uint8_t control;
    uint32_t data;
}DockCodeType;



void vDockInit(void);
int8_t cDockDecode(DockCodeType *ptypeData, int16_t sValue);

#endif
